<?

require_once ('paginc_class.php');

class MyPaging extends Paging {
	protected $sep = ' .. ';
	protected $lblPrev = ' Previous ';
	protected $lblNext = ' Next ';
}

function microtime_float()
{
   list($usec, $sec) = explode(" ", microtime());
      return ((float)$usec + (float)$sec);
}



function pagingtest() {

?><style type="text/css">
.Page {color: black; padding: 3px 6px; border: 1px solid #eee;}
.selectedPage {background: red;}
</style><?

for ($j = 1; $j <= 20; $j++) 
	for ($i = 1; $i<=20; $i++) {
		echo "<p>Paging: page $i from pages $j</p>";
		new MyPaging('/foo/', '/bar/', $i, $j, Array('left'=> 5, 'center'=> 3, 'right'=> 2));
	}
}

$time_start=microtime_float();
pagingtest();
echo "<p>" . (microtime_float() - $time_start);

?>
